﻿using System.Collections.Generic;
using PortalWeb.CMS.Core.Entity;

namespace PortalWeb.CMS.Core.IManager
{
    public partial interface IAttachmentManager
    {
        /// <summary>
        ///  查找附件列表
        /// </summary>
        /// <param name="modelId">公共模型ID</param>
        /// <param name="owner">所有者</param>
        /// <param name="type">类型</param>
        /// <returns></returns>
        IEnumerable<Attachment> FindList(int? modelId, string owner, string type);
        /// <summary>
        /// 查找附件列表
        /// </summary>
        /// <param name="modelId">公共模型ID</param>
        /// <param name="owner">所有者</param>
        /// <param name="type">所有者</param>
        /// <param name="withModelIdNull">包含ModelID为Null的</param>
        /// <returns></returns>
        IEnumerable<Attachment> FindList(int modelId, string owner, string type, bool withModelIdNull);
    }
}
